﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UniversityHomeTask
{
    class Facultet
    {
        public string name;
        public List<Department> Departments = new List<Department>();

        public static Facultet GetRandomFacultet()
        {
            Facultet faculty = new Facultet();
            faculty.name = "Main facultet";
            for (int i = 0; i < 5; i++)
            {
                faculty.Departments.Add(Department.GenerateDepartment());
            }
            return faculty;
        }
        public void PrintFacultyToConsoole()
        {
            Console.WriteLine("Faculty Name: {0}", name);
            foreach (var department in Departments)
            {
                department.PrintDepartment();
            }
        }
    }
}
